package com.settlement.system.mapper;

import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblCustomizedExporeDtl;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 自定义导出明细 Mapper 接口
 *
 * @author Ximi
 * @since 2020-11-17
 */
public interface TblCustomizedExporeDtlMapper extends BaseMapper {

    /**
     * 删除根据 main 表id
     *
     * @param mainId
     * @throws ServiceException
     */
    public void deleteByMainId(@Param("mainId") String mainId) throws ServiceException;

    /**
     * 删除根据 main 表id
     *
     * @param mainId
     * @throws ServiceException
     * @return
     */
    public List<TblCustomizedExporeDtl> getByMainId(@Param("mainId") String mainId) throws ServiceException;

}

